﻿<UserControl xmlns:my="clr-namespace:VAdvantage.Controls"  xmlns:my2="clr-namespace:SLControls.Controls;assembly=SLControls"  
           x:Class="VAdvantage.Apps.AForms.ArchiveViewer" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:frame="clr-namespace:VAdvantage.Apps"
           xmlns:provider="clr-namespace:SilverlightDesktop.Controls;assembly=SilverlightDesktop"
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
           xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit" 
           xmlns:my1="clr-namespace:VAdvantage.Panels" d:DesignWidth="925" d:DesignHeight="568" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml">

    <Grid x:Name="LayoutRoot" Background="White" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
        <Grid.RowDefinitions>
            <RowDefinition Height="521*" />
            <RowDefinition Height="47" />
        </Grid.RowDefinitions>
        <toolkit:BusyIndicator Name="PageStatus" BusyContent="Loading" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
            <sdk:TabControl Name="tabControl1" >
                <sdk:TabItem Header="tabItem1" Name="tabItem1">
                    <Grid Name="grid1" Width="467" Background="Transparent">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="120" />
                            <ColumnDefinition Width="300*" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="35" />
                            <RowDefinition Height="35" />
                            <RowDefinition Height="35" />
                            <RowDefinition Height="35" />
                            <RowDefinition Height="35" />
                            <RowDefinition Height="35" />
                            <RowDefinition Height="35" />
                            <RowDefinition Height="35" />
                            <RowDefinition Height="34" />
                            <RowDefinition Height="35" />
                            <RowDefinition Height="62*" />
                        </Grid.RowDefinitions>
                        <CheckBox Content="CheckBox" Name="reportField" HorizontalAlignment="Right" VerticalAlignment="Center" HorizontalContentAlignment="Center" Padding="4,1,0,0" Margin="0,0,15,0" Checked="reportField_Checked" Unchecked="reportField_Unchecked" />
                        <TextBlock Grid.Row="1" Name="bPartnerLabel" Text="TextBlock" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,15,0" />
                        <TextBlock Grid.Row="2" Name="processLabel" Text="TextBlock" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,15,0" />
                        <TextBlock Grid.Row="3" Name="tableLabel" Text="TextBlock" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,15,0" />
                        <TextBlock Grid.Row="4" Name="nameQLabel" Text="TextBlock" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,15,0" />
                        <TextBlock Grid.Row="5" Name="descriptionQLabel" Text="TextBlock" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,15,0" />
                        <TextBlock Grid.Row="6" Name="helpQLabel" Text="TextBlock" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,15,0" />
                        <TextBlock Grid.Row="7" Name="createdByQLabel" Text="TextBlock" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,15,0" />
                        <TextBlock Grid.Row="8" Name="createdQLabel" Text="TextBlock" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,15,0" />
                        <TextBox Grid.Column="1" Grid.Row="5" Name="descriptionQField" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="4" Name="nameQField" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="6" Name="helpQField" VerticalAlignment="Center" />
                        <my:VDatePicker Grid.Column="1" Grid.Row="8" x:Name="createdQFrom" VerticalAlignment="Center" />
                        <my:VDatePicker Grid.Column="1" Grid.Row="9" x:Name="createdQTo" VerticalAlignment="Center" />
                    </Grid>
                </sdk:TabItem>

                <sdk:TabItem Header="tabItem2" Name="tabItem2">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="579*" />
                            <ColumnDefinition Width="334" />
                        </Grid.ColumnDefinitions>
                        <Border  Name="container" BorderBrush="Gray" BorderThickness="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                            <!--<c1:C1ReportViewer Name="c1ReportViewer1" ToolbarVisibility="Visible" ViewMode="FitWidth" />-->
                        </Border>
                        <Grid Grid.Column="1" Name="grid2" Background="Transparent">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="64" />
                                <RowDefinition Height="*" />
                            </Grid.RowDefinitions>
                            <StackPanel Height="54" HorizontalAlignment="Right" Margin="3,5,0,0" Name="stackPanel1" VerticalAlignment="Top" Orientation="Horizontal">
                                <Button Content="&lt;&lt;" Height="34" Name="bBack" Width="56" Click="bBack_Click" Margin="3,0,0,0" />
                                <sdk:Label Height="28" Name="positionInfo" Margin="8,0" />
                                <Button Content="&gt;&gt;" Height="34" Name="bNext" Click="bNext_Click" Width="56" />
                            </StackPanel>
                            <Grid Grid.Row="1" Name="grid3">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="35" />
                                    <RowDefinition Height="35" />
                                    <RowDefinition Height="35" />
                                    <RowDefinition Height="50" />
                                    <RowDefinition Height="50" />
                                    <RowDefinition Height="69*" />
                                    <RowDefinition Height="46*" />
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="120" />
                                    <ColumnDefinition Width="147*" />
                                </Grid.ColumnDefinitions>
                                <TextBox Grid.Column="1" Name="createdByField" VerticalAlignment="Center" IsReadOnly="True" />
                                <TextBox Grid.Column="1" Grid.Row="1" Name="createdField" VerticalAlignment="Center" IsReadOnly="True" />
                                <TextBox Grid.Column="1" Grid.Row="2" Name="nameField" VerticalAlignment="Center" />
                                <TextBox Grid.Column="1" Grid.Row="3" Name="descriptionField" TextWrapping="Wrap" Margin="0,5" />
                                <TextBox Grid.Column="1" Grid.Row="4" Name="helpField" TextWrapping="Wrap" Margin="0,5" />
                                <TextBlock Name="createdByLabel" Text="TextBlock" VerticalAlignment="Center" Margin="5,0" />
                                <TextBlock Grid.Row="2" Name="nameLabel" Text="TextBlock" VerticalAlignment="Center" Margin="5,0" />
                                <TextBlock Grid.Row="1" Name="createdLabel" Text="TextBlock" VerticalAlignment="Center" Margin="5,0" />
                                <TextBlock Grid.Row="3" Name="descriptionLabel" Text="TextBlock" VerticalAlignment="Top" Margin="5,5,5,0" />
                                <TextBlock Grid.Row="4" Name="helpLabel" Text="TextBlock" VerticalAlignment="Top" Margin="5,5,5,0" />
                                <Button Grid.Column="1" Grid.Row="5" Height="34" Margin="0,7,3,0" Name="bUpdateArchive" VerticalAlignment="Top" Click="bUpdateArchive_Click" HorizontalAlignment="Right" Width="58">
                                    <Image Source="/VAdvantage;component/Images/Toolbar/Save22.png" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"></Image>
                                </Button>
                            </Grid>
                        </Grid>
                    </Grid>

                </sdk:TabItem>
            </sdk:TabControl>
        </toolkit:BusyIndicator>

        <Button Content="OK" Grid.Row="1" Height="34" Margin="0,6,9,0" Name="ibtnOKS" VerticalAlignment="Top" Click="ibtnOKS_Click" HorizontalAlignment="Right" Width="58" />
    </Grid>
</UserControl>
